package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_WanliPaymentReturnItem", catalog="Id")
public class TcwWanliPaymentReturnItem extends BaseEntity<TcwWanliPaymentReturnItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="WanliPaymentReturnBid", nameJava="wanliPaymentReturnBid", typeDataBase="varchar")
	private String wanliPaymentReturnBid;
	@YsField(nameDataBase="PaymentReturnItemId", nameJava="paymentReturnItemId", typeDataBase="bigint")
	private Long paymentReturnItemId;
	@YsField(nameDataBase="ZfAmount", nameJava="zfAmount", typeDataBase="decimal")
	private BigDecimal zfAmount;
	@YsField(nameDataBase="ExchangeRate", nameJava="exchangeRate", typeDataBase="decimal")
	private BigDecimal exchangeRate;
	@YsField(nameDataBase="ServiceCharge", nameJava="serviceCharge", typeDataBase="decimal")
	private BigDecimal serviceCharge;
	@YsField(nameDataBase="ThCurrencyCode", nameJava="thCurrencyCode", typeDataBase="varchar")
	private String thCurrencyCode;
	@YsField(nameDataBase="ThAmount", nameJava="thAmount", typeDataBase="decimal")
	private BigDecimal thAmount;
	@YsField(nameDataBase="StatePay", nameJava="statePay", typeDataBase="tinyint")
	private Integer statePay;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwWanliPaymentReturnItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getWanliPaymentReturnBid() {
		return wanliPaymentReturnBid;
	}
	public TcwWanliPaymentReturnItem setWanliPaymentReturnBid(String wanliPaymentReturnBid) {
		this.wanliPaymentReturnBid = wanliPaymentReturnBid;
		return this;
	}
	public Long getPaymentReturnItemId() {
		return paymentReturnItemId;
	}
	public TcwWanliPaymentReturnItem setPaymentReturnItemId(Long paymentReturnItemId) {
		this.paymentReturnItemId = paymentReturnItemId;
		return this;
	}
	public BigDecimal getZfAmount() {
		return zfAmount;
	}
	public TcwWanliPaymentReturnItem setZfAmount(BigDecimal zfAmount) {
		this.zfAmount = zfAmount;
		return this;
	}
	public BigDecimal getExchangeRate() {
		return exchangeRate;
	}
	public TcwWanliPaymentReturnItem setExchangeRate(BigDecimal exchangeRate) {
		this.exchangeRate = exchangeRate;
		return this;
	}
	public BigDecimal getServiceCharge() {
		return serviceCharge;
	}
	public TcwWanliPaymentReturnItem setServiceCharge(BigDecimal serviceCharge) {
		this.serviceCharge = serviceCharge;
		return this;
	}
	public String getThCurrencyCode() {
		return thCurrencyCode;
	}
	public TcwWanliPaymentReturnItem setThCurrencyCode(String thCurrencyCode) {
		this.thCurrencyCode = thCurrencyCode;
		return this;
	}
	public BigDecimal getThAmount() {
		return thAmount;
	}
	public TcwWanliPaymentReturnItem setThAmount(BigDecimal thAmount) {
		this.thAmount = thAmount;
		return this;
	}
	public Integer getStatePay() {
		return statePay;
	}
	public TcwWanliPaymentReturnItem setStatePay(Integer statePay) {
		this.statePay = statePay;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwWanliPaymentReturnItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwWanliPaymentReturnItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwWanliPaymentReturnItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwWanliPaymentReturnItem tcwWanliPaymentReturnItem(
		String wanliPaymentReturnBid,
		Long paymentReturnItemId,
		BigDecimal zfAmount,
		BigDecimal exchangeRate,
		BigDecimal serviceCharge,
		String thCurrencyCode,
		BigDecimal thAmount,
		Integer statePay,
		Integer status
			) {
		TcwWanliPaymentReturnItem entity = new TcwWanliPaymentReturnItem();
		entity.setWanliPaymentReturnBid(wanliPaymentReturnBid);
		entity.setPaymentReturnItemId(paymentReturnItemId);
		entity.setZfAmount(zfAmount);
		entity.setExchangeRate(exchangeRate);
		entity.setServiceCharge(serviceCharge);
		entity.setThCurrencyCode(thCurrencyCode);
		entity.setThAmount(thAmount);
		entity.setStatePay(statePay);
		entity.setStatus(status);
		return entity;
	}
}